package cn.edu.usst.cs.pi2;


public class PiLocator {
    public static void main(String[] args) {
        String targetNumber = "6939937510";
        String piFilePath = "E:\\pi_dec_1t_06.txt";
        int numThreads = Runtime.getRuntime().availableProcessors();
        int blockSize = 100000;
        int overlapSize = 10;
        PiProcessor processor = new PiProcessor(piFilePath, numThreads, targetNumber, blockSize, overlapSize);
        try {
            processor.startProcessing();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}